﻿<%@ Page Title="About" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Order.aspx.cs" Inherits="Projekt_2_ASP.NET.About" %>

<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
    <hgroup class="title">
        <h1><%: Title %>.</h1>
        <h2>F&auml;rdigst&auml;ll din best&auml;llning.</h2>
    </hgroup>

    <article>   
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="391px">
            <Columns>
                <asp:BoundField DataField="Text" HeaderText="Produkt" />
                <asp:BoundField DataField="Quantity" HeaderText="Antal" />
            </Columns>
        </asp:GridView>
        <table class="auto-style1">
            <tr>
                <td class="auto-style2">Adress:</td>
                <td class="auto-style2">
                    <asp:TextBox ID="TextBoxAddress" runat="server" Height="20px" Width="200px" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBoxAddress" ErrorMessage="Ange adress!" ForeColor="Red">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="auto-style3">Postkod:</td>
                <td class="auto-style3">
                    <asp:TextBox ID="TextBoxZipCode" runat="server" Height="20px" Width="200px" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBoxZipCode" ErrorMessage="Ange postkod!" ForeColor="Red">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TextBoxZipCode" ErrorMessage="Fel format på postkoden!" ForeColor="Red" ValidationExpression="\d{5}|\d{3} \d{2}">*</asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td>Stad:</td>
                <td>
                    <asp:TextBox ID="TextBoxCity" runat="server" Height="20px" Width="200px" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBoxCity" ErrorMessage="Ange stad!" ForeColor="Red">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>Email:</td>
                <td>
                    <asp:TextBox ID="TextBoxEmail" runat="server" Height="20px" Width="200px" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TextBoxEmail" ErrorMessage="Ange email!" ForeColor="Red">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="TextBoxEmail" ErrorMessage="Fel format på email!" ForeColor="#CC0000" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    
                    <asp:Button ID="ButtonSubmit" runat="server" OnClick="ButtonSubmit_Click" Text="Beställ!" />
                    
    <asp:Label ID="Label1" runat="server" Text="Tack för din beställning!" Visible="False" ForeColor="Lime"></asp:Label>                
                    <asp:Button ID="ButtonContinue" runat="server" OnClick="ButtonContinue_Click" Text="Fortsätt handla" Visible="False" />
    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red" />
                    
                    <br />
                    
                    
                </td>
            </tr>
        </table>
    </article>
    <br />
    </asp:Content>
<asp:Content ID="Content1" runat="server" contentplaceholderid="HeadContent">
    <style type="text/css">
        .auto-style1 {
            width: 100%;
        }
        .auto-style2 {
            height: 23px;
        }
        .auto-style3 {
            height: 50px;
        }
    </style>
</asp:Content>
